app.controller('indexController',function ($scope,$controller,indexService) {
    $controller('baseController',{$scope:$scope});//继承

    $scope.getUser=function () {
        indexService.getUser().success(
            function (response) {
                $scope.user=response;
                // console.log(response.username);
            })
    }
});